# for i in range(1,5):
#     for j in range(1,5):
#         for k in range(1,5):
#             if (i!=j) and (i!=k) and (j != k):
#                 print(i,j,k)

num = input("pls input the lirun:")
num = int(num)
if (num <=10):
    print(num*0.1)
elif (num <=20):
    print(1+(20-num)*0.075)
elif (num <= 40):
    print(1.75+(40-num)*0.05)
elif (num <= 60):
    print(2.75+(60-num)*0.03)
elif (num <=80):
    print(4.55+(80-num)*0.15)
elif (num <= 100):
    print(7.55+(100-num)*0.01)

